<?php
namespace app\common\model;

use think\Model;
use think\Db;
class PlaformInvitecode extends Model
{
    // 指定表名,不含前缀
    protected $name = 'plaform_invitecode';

 
    public function getListByArg(array $arg=null,$field='*'){
        if (!is_array($arg))return false;
        $arg = $this->where($arg)->field($field)->select();
        return $arg;
    }
	public function getListByArgOne(array $arg=null,$field='*'){
        if (!is_array($arg))return false;
        $arg = $this->where($arg)->field($field)->find();
        return $arg;
    }
	
}
